<?php
date_default_timezone_set('Asia/Shanghai');
define('APP_DEBUG', true);
define('WEB_PATH', dirname(getcwd()));
define('APP_NAME', 'Application');
define('APP_PATH', WEB_PATH . DIRECTORY_SEPARATOR . 'Application' . DIRECTORY_SEPARATOR);
define('THINK_PATH', WEB_PATH . DIRECTORY_SEPARATOR . 'ThinkPHP' . DIRECTORY_SEPARATOR);
define('RUNTIME_PATH' , WEB_PATH . DIRECTORY_SEPARATOR . 'Runtime' . DIRECTORY_SEPARATOR);
if (strpos($_SERVER['REQUEST_URI'], '/admin/') !== 0) {
    define('BIND_MODULE', 'Home');
}
require(THINK_PATH.'ThinkPHP.php');